# -*- coding: utf-8 -*-
import maya.cmds as cmds
import maya.mel as mel
def Check_isRefLoaded():
	log = ''
	references = cmds.file(q=True, r=True)
	for reference in references:
		filepath = cmds.referenceQuery(reference,referenceNode=True)
		if cmds.referenceQuery(reference, isLoaded=True):
			log += filepath + "-YES,"
		else:
			
			log += filepath + "-NO,"
	return(log)